import request from '@/utils/schoolRequest.js'
let host = ''
//
export const answerServiceQuestions = id => {
  return request.get(host + '/academy/answerService/questions/' + id + '/answers')
}
export const answerService = id => {
  return request.get(host + '/academy/answerService/questions/' + id)
}
export const getmoments = id => {
  return request.get(host + '/academy/answerService/moments/' + id)
}
export const getacademyCode = academyCode => {
  return request.get(host + '/academy/answerService/moments?academyCode=' + academyCode)
}
export const getMomentsList = academyCode => {
  return request.get(host + '/academy/answerService/moments?type=2&academyCode=' + academyCode)
}
export const getquestionAnswer = obj => {
  return request.get(host + '/academy/answerService/questionAnswer', obj)
}
export const getobjmoments = obj => {
  return request.get(host + '/academy/answerService/moments', obj)
}
// 院校专业
export const getMajors = obj => {
  return request.get(host + '/academy/majors', obj)
}
// 院校概况
export const getAcademyOverview = id => {
  return request.get(host + '/academy/overview/' + id)
}
export const getInfos = (page, limit, province) => {
  return request.get(host + '/academy/infos?page=' + page + '&limit=' + limit + '&province=' + province)
}
export const getProvinces = () => {
  return request.get(host + '/academy/provinces')
}
export const getLives = (type, page, limit) => {
  return request.get(host + '/academy/lives?live_type=' + type + '&page=' + page + '&limit=' + limit)
}
export const getAdvisories = (page, limit, province_id, search) => {
  return request.get(host + '/academy/advisories?page=' + page + '&limit=' + limit + '&province_id=' + province_id + '&search=' + search)
}
export const getTopics = (page, limits) => {
  return request.get(host + '/academy/topics?' + page + '&' + limits)
}
export const getQuestions = (academyCode, page, limit) => {
  return request.get(host + '/academy/' + academyCode + '/questions?page=' + page + '&limit=' + limit)
}
export const putQuestions = (academyCode, obj) => {
  return request.post(host + '/academy/' + academyCode + '/questions', obj)
}
